import React from 'react'
import ReactDom from 'react-dom'

class Hello extends React.Component {
  // 事件处理程序
  handleClick () {
    document.title = +new Date()
    console.log(this)

  }
  render () {
    return (
      <div>
        <button onClick={this.handleClick}>anniu</button>
      </div>
    )
  }
}

ReactDom.render(<Hello></Hello>, document.querySelector('#root'))